<?php
namespace app\model;

class Users extends Base
{
    protected $name = 'users';

    public function getSexTextAttr($value,$data){
        return $data['sex'] == '1' ? '男': '女';
    }
}